<?php
	if ( isset( $_POST['s'] ) ){
		session_start();
		session_destroy();
	}

	if ( isset( $_POST['err'] ) ){
		$e = $_POST['err'];
	}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Administrador de Contenidos</title>
<link href="adds/estilo.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="adds/lib.js">;</script>
</head>
<body>
<table width="731" align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" id="tabla">
  <tr>
    <!--Se incluye la cabecera de la carpeta adds --> 
<td> <div id="encabezado">
	<div id="huevo">
	<img src="imagenes/px.gif" width="233" height="135" border="0" usemap="#Map"/></div>
	<div id="menu">
	</div>
</div>
<map name="Map">
<area shape="poly" coords="0,0,175,0,189,11,198,22,203,27,208,38,210,45,209,60,208,69,204,77,198,84,189,93,182,99,177,99,160,108,137,116,109,124,77,127,52,129,39,128,23,128,0,126" href="http://www.uady.mx">
</map>
	</td>
     <!--Fin de Cabecera -->
	 </tr><tr>
	 <td>
<br />
<table align="center">
<tr>
	<td>
		<form method="post" name="u1" action="auth.php">
		<fieldset>
			<legend style="font-family:Arial, Helvetica, sans-serif; font-weight:bolder;">Administrador de Contenidos</legend>
			<table style="font-family:Arial, Helvetica, sans-serif; font-size:12px;">
				<tr>
					<td>Nombre de Usuario:</td>
				 	<td><input type="text" size="40" maxlength="40" name="u" value="" style="font-family:Arial; font-size:12px;"></td>
				</tr>
				<tr>
					<td>Contraseña:</td>
					<td><input type="password" size="40" maxlength="40" name="p" value="" style="font-family:Arial; font-size:12px;"></td>
				</tr>
				<tr>
					<td colspan="2" style="font-size:12px; text-align:center; color:#FF0000; font-weight:bolder;"><?php echo $e; ?></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
					<input type="submit" value="Entrar" style="font-family:Arial; font-size:12px;" onclick="return checaf();">
					&nbsp; &nbsp; 
					<input type="button" value="Cerrar" onclick="var x = window.self; x.opener = window.self; x.close();" style="font-family:Arial; font-size:12px;">
					</td>
				</tr>
			</table>
		</fieldset>
		</form>
	</td>	
</tr>
</table>
<?php include_once( "pie.php" ); ?>


